﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tauren.Business.Entity.Const
{
    public class GlobalConst
    {
        /// <summary>
        /// 到分
        /// </summary>
        public const string DATE_FORMAT_MINUTES = "yyyy-MM-dd HH:mm";
        /// <summary>
        /// 到天
        /// </summary>
        public const string DATE_FORMAT_DAY = "yyyy-MM-dd";
        /// <summary>
        /// 到小时
        /// </summary>
        public const string DATE_FORMAT_HOURS = "yyyy-MM-dd HH";
        /// <summary>
        /// 到秒
        /// </summary>
        public const string DATE_FORMAT_SECONDS = "yyyy-MM-dd HH:mm:ss";

        #region 标识

        /// <summary>
        /// 人员缓存标识
        /// </summary>
        public const string EMPLOYEE_FLAG_REDIS_KEY = "EMPLOYEE_FLAG_REDIS_KEY";

        /// <summary>
        /// 组织缓存标识
        /// </summary>
        public const string ORGANIZATION_FLAG_REDIS_KEY = "ORGANIZATION_FLAG_REDIS_KEY";

        /// <summary>
        /// 职位缓存标识
        /// </summary>
        public const string POSTIONS_FLAG_REDIS_KEY = "POSTIONS_FLAG_REDIS_KEY";

        /// <summary>
        /// 单位缓存标识
        /// </summary>
        public const string UNITS_FLAG_REDIS_KEY = "UNITS_FLAG_REDIS_KEY";

        /// <summary>
        /// 资源文件缓存标识
        /// </summary>
        public const string RESOURCES_FLAG_REDIS_KEY = "RESOURCES_FLAG_REDIS_KEY";

        /// <summary>
        /// 字典缓存标识
        /// </summary>
        public const string DICTIONARYRES_FLAG_REDIS_KEY = "DICTIONARYRES_FLAG_REDIS_KEY";

        #endregion

        #region 模块标识
        /// <summary>
        /// 资源文件缓存标识
        /// </summary>
        public const string RESOURCES_FLAG_MODULE_KEY = "RESOURCES";
        /// <summary>
        /// 语言
        /// </summary>
        public const string LANGUAGE_FLAG_MODULE_KEY = "LANGUAGE";

        /// <summary>
        /// 菜单
        /// </summary>
        public const string RESOURCES_FLAG_MODULE_MENUS_KEY = "MENU";

        /// <summary>
        /// 公司
        /// </summary>
        public const string RESOURCES_FLAG_MODULE_COMPANY_KEY = "COMPANY";

        /// <summary>
        /// 员工基本信息
        /// </summary>
        public const string RESOURCES_FLAG_MODULE_EMPLOYEE_KEY = "EMPLOYEE";

        /// <summary>
        /// 账号信息
        /// </summary>
        public const string RESOURCES_FLAG_MODULE_ACCOUNT_KEY = "ACCOUNT";

        /// <summary>
        /// 操作管理
        /// </summary>
        public const string RESOURCES_FLAG_MODULE_OPERATION_KEY = "OPERATION";
        /// <summary>
        /// 权限管理
        /// </summary>
        public const string RESOURCES_FLAG_MODULE_PERMISSION_KEY = "PERMISSION";
        /// <summary>
        /// 角色管理
        /// </summary>
        public const string RESOURCES_FLAG_MODULE_ROLE_KEY = "ROLE";
        /// <summary>
        /// 组织
        /// </summary>
        public const string RESOURCES_FLAG_MODULE_ORGANIZATION_KEY = "DEPARTMET";

        public const string RESOURCES_FLAG_MODULE_POSITION_KEY = "POSITION";
        /// <summary>
        /// 字典
        /// </summary>
        public const string RESOURCES_FLAG_MODULE_DICTIONARY_KEY = "DICTIONARY";

        /// <summary>
        /// 系统表
        /// </summary>
        public const string RESOURCES_FLAG_MODULE_TABLEINFO_KEY = "TABLEINFO";
        
        /// <summary>
        /// 常用参数
        /// </summary>
        public const string RESOURCES_FLAG_MODULE_PARAMETER_KEY = "PARAMETER";

        /// <summary>
        /// 流程中心
        /// </summary>
        public const string RESOURCES_FLAG_MODULE_FLOWCENTER_KEY = "FLOWCENTER";

        /// <summary>
        /// 工作台
        /// </summary>
        public const string RESOURCES_FLAG_MODULE_WORKBENCH_KEY = "WORKBENCH";

        #endregion
        #region 内容标识
        public const string LANGUAGE_CONTENT_LANGUAGE_KEY = "LANGUAGE";
        #region 资源文件数据
        public const string RESOURCES_CONTENT_ENABLE_KEY = "ENABLE";
        public const string RESOURCES_CONTENT_DISABLE_KEY = "DISABLE";
        #endregion
        #endregion

        public const int REQUEST_DURATION_TIME_SECONDS = 3;
        public const string AuthorizationTokenKey = "Authorization";
        public const string GolbalData = "GolbalData";
    }
}
